package com.xcm.cloud.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xcm.cloud.bean.User;
import com.xcm.cloud.client.PropertyClient;
import com.xcm.cloud.client.UserClient;

@Service
public class ParkService {
    @Autowired
    private UserClient userServfaceClient;
    @Autowired
    private PropertyClient propertyClient;
    /**
     * 远程调用服务提供者，获得所有用户
     * @return
     */
    public List<User> getUsersFromClient(){
        return this.userServfaceClient.users().getData();
    }
    
    public Map<String, Object> listProvince(){
    	return this.propertyClient.listProvince();
    }
}
